package com.logic.landseaserver.ws.dto;

import java.util.Date;

import com.logic.common.ws.dto.system.AddressDTO;
import com.logic.landseaserver.domain.Deposit;
import com.logic.landseaserver.domain.Project;

public class DepositPdfDTO {
	
    private Integer id;

    private String depositSn;

    private String certificatesType;
    
    private String certificatesTypeCH;

    private String certificatesId;

    private String userName;

    private String cellPhone;

    private Integer prjId;

    private String desoStyle;

    private Integer roomId;

    private String lease;
    
    private String leaseCH;

    private String paymentMode;

    private Date orderDate;

    private Date availableDate;

    private Double depositAmount;

    private String status;

    private String payMethod;

    private Date payDate;

    private String paySn;

    private String comments;

    private Integer version;

    private Date createdDtm;

    private Integer createdBy;

    private Date lastModifiedDtm;

    private Integer lastModifiedBy;

    private Integer deleted;
    
    private String statusName;
    
    private String paymentModeName;
    
    private String payMethodName;

    private Project project;
    
    private ProjectAppartmentDTO room;
    
    private AddressDTO address;

	private Boolean isChapter;

	private Integer pdfImg;

	private Integer pdfId;

	private String gender;

	private Double originalAmount;

	private Double discountAmount;

	private String customerAddress;

	private String oprType;

	private String userVersion;

	private String mainType;

	private CustomerCardDTO customerCardDTO;

	public String getCustomerAddress() {
		return customerAddress;
	}

	public void setCustomerAddress(String customerAddress) {
		this.customerAddress = customerAddress;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDepositSn() {
		return depositSn;
	}

	public void setDepositSn(String depositSn) {
		this.depositSn = depositSn;
	}

	public String getCertificatesType() {
		return certificatesType;
	}

	public void setCertificatesType(String certificatesType) {
		this.certificatesType = certificatesType;
	}

	public String getCertificatesTypeCH() {
		return certificatesTypeCH;
	}

	public void setCertificatesTypeCH(String certificatesTypeCH) {
		this.certificatesTypeCH = certificatesTypeCH;
	}

	public String getCertificatesId() {
		return certificatesId;
	}

	public void setCertificatesId(String certificatesId) {
		this.certificatesId = certificatesId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getCellPhone() {
		return cellPhone;
	}

	public void setCellPhone(String cellPhone) {
		this.cellPhone = cellPhone;
	}

	public Integer getPrjId() {
		return prjId;
	}

	public void setPrjId(Integer prjId) {
		this.prjId = prjId;
	}

	public String getDesoStyle() {
		return desoStyle;
	}

	public void setDesoStyle(String desoStyle) {
		this.desoStyle = desoStyle;
	}

	public Integer getRoomId() {
		return roomId;
	}

	public void setRoomId(Integer roomId) {
		this.roomId = roomId;
	}

	public String getLease() {
		return lease;
	}

	public void setLease(String lease) {
		this.lease = lease;
	}

	public String getLeaseCH() {
		return leaseCH;
	}

	public void setLeaseCH(String leaseCH) {
		this.leaseCH = leaseCH;
	}

	public String getPaymentMode() {
		return paymentMode;
	}

	public void setPaymentMode(String paymentMode) {
		this.paymentMode = paymentMode;
	}

	public Date getOrderDate() {
		return orderDate;
	}

	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}

	public Date getAvailableDate() {
		return availableDate;
	}

	public void setAvailableDate(Date availableDate) {
		this.availableDate = availableDate;
	}

	public Double getDepositAmount() {
		return depositAmount;
	}

	public void setDepositAmount(Double depositAmount) {
		this.depositAmount = depositAmount;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getPayMethod() {
		return payMethod;
	}

	public void setPayMethod(String payMethod) {
		this.payMethod = payMethod;
	}

	public Date getPayDate() {
		return payDate;
	}

	public void setPayDate(Date payDate) {
		this.payDate = payDate;
	}

	public String getPaySn() {
		return paySn;
	}

	public void setPaySn(String paySn) {
		this.paySn = paySn;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Date getCreatedDtm() {
		return createdDtm;
	}

	public void setCreatedDtm(Date createdDtm) {
		this.createdDtm = createdDtm;
	}

	public Integer getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(Integer createdBy) {
		this.createdBy = createdBy;
	}

	public Date getLastModifiedDtm() {
		return lastModifiedDtm;
	}

	public void setLastModifiedDtm(Date lastModifiedDtm) {
		this.lastModifiedDtm = lastModifiedDtm;
	}

	public Integer getLastModifiedBy() {
		return lastModifiedBy;
	}

	public void setLastModifiedBy(Integer lastModifiedBy) {
		this.lastModifiedBy = lastModifiedBy;
	}

	public Integer getDeleted() {
		return deleted;
	}

	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}

	public String getStatusName() {
		return statusName;
	}

	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}

	public String getPaymentModeName() {
		return paymentModeName;
	}

	public void setPaymentModeName(String paymentModeName) {
		this.paymentModeName = paymentModeName;
	}

	public String getPayMethodName() {
		return payMethodName;
	}

	public void setPayMethodName(String payMethodName) {
		this.payMethodName = payMethodName;
	}

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public ProjectAppartmentDTO getRoom() {
		return room;
	}

	public void setRoom(ProjectAppartmentDTO room) {
		this.room = room;
	}

	public AddressDTO getAddress() {
		return address;
	}

	public void setAddress(AddressDTO address) {
		this.address = address;
	}

	public Boolean getChapter() {
		return isChapter;
	}

	public void setChapter(Boolean chapter) {
		isChapter = chapter;
	}

	public Integer getPdfImg() {
		return pdfImg;
	}

	public void setPdfImg(Integer pdfImg) {
		this.pdfImg = pdfImg;
	}

	public Integer getPdfId() {
		return pdfId;
	}

	public void setPdfId(Integer pdfId) {
		this.pdfId = pdfId;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public Double getOriginalAmount() {
		return originalAmount;
	}

	public void setOriginalAmount(Double originalAmount) {
		this.originalAmount = originalAmount;
	}

	public Double getDiscountAmount() {
		return discountAmount;
	}

	public void setDiscountAmount(Double discountAmount) {
		this.discountAmount = discountAmount;
	}

	public String getOprType() {
		return oprType;
	}

	public void setOprType(String oprType) {
		this.oprType = oprType;
	}

	public String getUserVersion() {
		return userVersion;
	}

	public void setUserVersion(String userVersion) {
		this.userVersion = userVersion;
	}

	public String getMainType() {
		return mainType;
	}

	public void setMainType(String mainType) {
		this.mainType = mainType;
	}

	public CustomerCardDTO getCustomerCardDTO() {
		return customerCardDTO;
	}

	public void setCustomerCardDTO(CustomerCardDTO customerCardDTO) {
		this.customerCardDTO = customerCardDTO;
	}

	public static DepositPdfDTO convertToDepositPdfDTO(Deposit depositDTO) {
		DepositPdfDTO dto = new DepositPdfDTO();
		dto.setId(depositDTO.getId() == null ? null : depositDTO.getId());
		dto.setDepositSn(depositDTO.getDepositSn() == null ? null : depositDTO.getDepositSn());
		//dto.setCertificatesType(depositDTO.getCertificatesType() == null ? null : depositDTO.getCertificatesType());
	//	dto.setCertificatesId(depositDTO.getCertificatesId() == null ? null : depositDTO.getCertificatesId());
	//	dto.setUserName(depositDTO.getUserName() == null ? null : depositDTO.getUserName());
	//	dto.setCellPhone(depositDTO.getCellPhone() == null ? null : depositDTO.getCellPhone());
		dto.setPrjId(depositDTO.getPrjId() == null ? null : depositDTO.getPrjId());
		dto.setDesoStyle(depositDTO.getDesoStyle() == null ? null : depositDTO.getDesoStyle());
		dto.setRoomId(depositDTO.getRoomId() == null ? null : depositDTO.getRoomId());
		dto.setLease(depositDTO.getLease() == null ? null : depositDTO.getLease());
		dto.setPaymentMode(depositDTO.getPaymentMode() == null ? null : depositDTO.getPaymentMode());
		dto.setAvailableDate(depositDTO.getAvailableDate() == null ? null : depositDTO.getAvailableDate());
		dto.setDepositAmount(depositDTO.getDepositAmount() == null ? null : depositDTO.getDepositAmount());
		dto.setStatus(depositDTO.getStatus() == null ? null : depositDTO.getStatus());
		dto.setPayMethod(depositDTO.getPayMethod() == null ? null : depositDTO.getPayMethod());
		dto.setComments(depositDTO.getComments() == null ? null : depositDTO.getComments());
		dto.setPdfId(depositDTO.getPdfId() == null ? null : depositDTO.getPdfId());
		//dto.setGender(depositDTO.getGender() == null ? null : depositDTO.getGender());
	//	dto.setCustomerAddress(depositDTO.getAddress() == null ? null : depositDTO.getAddress());
		dto.setPdfImg(depositDTO.getPdfImg() == null ? null : depositDTO.getPdfImg());
		dto.setDiscountAmount(depositDTO.getDiscountAmount()==null ? 0 : depositDTO.getDiscountAmount());
		dto.setOriginalAmount(depositDTO.getOriginalAmount()==null ? 0 : depositDTO.getOriginalAmount());
		return dto;
	}

}